﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace LuanVanProject
{
    public partial class ImageViewer : Viewer
    {
        string path;
        Image image;
        public ImageViewer(string _path)
        {
            InitializeComponent();
            path = _path;
            image = Image.FromFile(path);
        }

        public override int Open()
        {

            try
            {
                pictureBox1.Image = image;
                return 1;
            }
            catch { return -1; }
        }

      
    }
}
